package com.eugene.quant;


final public class Closeness {

	static public final boolean isClose(final double x, final double y) {
	    return isClose(x, y, MathConstants.QL_PRECISION);
	}

	static public final boolean isClose(final double x, final double y, final double accuracy) {
        final double diff = Math.abs(x-y);
        return diff <= accuracy; 
               
	}
	

}
